
<template>
  <el-dialog title="反馈信息" :visible.sync="visible"  :before-close="close">
    <el-form ref="form" :model="form" label-width="120px" label-position="left" :rules="rules" >
      <el-form-item label="是否解决" >
        <el-radio-group v-model="form.resolved" >
          <el-radio :label="true" disabled>是</el-radio>
          <el-radio :label="false" disabled>否</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="解决方案：" prop="desc">
        <el-input type="textarea" :rows="4" v-model="form.suggestion_manager"   disabled></el-input>
      </el-form-item>
    </el-form>

    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="close" >关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import {mapGetters} from "vuex";

export default {
  props: ['visible','info'],
  data() {
    return {
      isSolve:[
        {value: 'true',label: '是'},
        {value: 'false',label: '否'},
      ],
      form:{
      },
      rules:{},
    }
  },
  computed: {
    ...mapGetters(["permission"]),
  },
  watch: {
    info(){
      if(this.info){
        this.form=this.info
      }
    }
  },
  methods: {
    close() {
      // this.$refs['form'].resetFields();
      this.$emit('update:visible', false);
    },

  },

}
</script>

